package net.tv90.volunteerserveradmin.dao;

import net.tv90.volunteerserveradmin.model.domain.Teacher;
import net.tv90.volunteerserveradmin.model.domain.VolunteerProject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VolunteerProjectRepository extends JpaRepository<VolunteerProject, Long>, JpaSpecificationExecutor<VolunteerProject> {
    Page<VolunteerProject> findByIdIn(List<Long> projectIds, PageRequest pageRequest);
}
